﻿<script type="text/javascript">
    $(function () {

        // Accordion
        $("#accordion").accordion({ header: "h3", collapsible: true, active: false });

        // Not collapsible accordion
        $("#notCollapsibleAccordion").accordion({ header: "h3", collapsible: true, active: false });


    });

    function changeLocation() {
        alert('buu');
    }

</script>

<style type="text/css">
	/*demo page css*/			
	ul#icons {margin: 0; padding: 0;}
	ul#icons li {margin: 2px; position: relative; padding: 4px 0; cursor: pointer; float: left;  list-style: none;}
	ul#icons span.ui-icon {float: left; margin: 0 4px;}
</style>


<!-- Accordion -->
<div id="accordion">
    <div onclick="window.location.href='@Url.Action("NewsFeed", "Home", new {})'">
		<h3>
            @Html.ActionLink("Home", "NewsFeed", "Home", new { }, new { })
        </h3>
    </div>
	<div>
		<h3 onclick="window.location.href='@Url.Action("ProfileView", "Profile", new {id = Guid.Empty })'">
            @Html.ActionLink("Profile", "ProfileView", "Profile", new {id = Guid.Empty }, new { })
        </h3>
	</div>
    <div>
		<h3 onclick="window.location.href='@Url.Action("FriendList", "Profile", new { id = Guid.Empty })'">
            @Html.ActionLink("Friends", "FriendList", "Profile", new {id = Guid.Empty }, new { })
        </h3>   
	</div>
    <div>
		<h3 onclick="window.location.href='@Url.Action("ThreadList", "Thread", new { })'">
            @Html.ActionLink("Messages", "ThreadList", "Thread", new {}, new { })
        </h3>   
	</div>
    <div>
		<h3 onclick="window.location.href='@Url.Action("AlbumOwnerList", "Album", new { })'">
            @Html.ActionLink("Albums", "AlbumOwnerList", "Album", new { }, new { })
        </h3>   
	</div>
	<div>
		<h3><a href="#">Edit profile</a></h3>
		<div>
            <ul>
                <li>
                    @Ajax.ActionLink("Profile", "ProfileEdit", "Profile", new AjaxOptions { UpdateTargetId = "maincol", OnSuccess = "success", InsertionMode = System.Web.Mvc.Ajax.InsertionMode.Replace, HttpMethod = "GET" })
                </li>
                <li>
                    @Ajax.ActionLink("Relationship", "RelationshipLoveEdit", "Profile", new AjaxOptions { UpdateTargetId = "maincol", OnSuccess = "success", InsertionMode = System.Web.Mvc.Ajax.InsertionMode.Replace, HttpMethod = "GET" })
                </li>
                <li>
                    @Ajax.ActionLink("Family", "RelationshipFamilyEdit", "Profile", new AjaxOptions { UpdateTargetId = "maincol", OnSuccess = "success", InsertionMode = System.Web.Mvc.Ajax.InsertionMode.Replace, HttpMethod = "GET" })
                </li>
                <li>
                    @Ajax.ActionLink("Password", "ChangePassword", "User", new AjaxOptions { UpdateTargetId = "maincol", OnSuccess = "success", InsertionMode = System.Web.Mvc.Ajax.InsertionMode.Replace, HttpMethod = "GET" })
                </li>
            </ul>
        </div>
	</div>	
</div>